@import '~@styles/common.less';

.siderContainer {
  position: relative;

  .siderWrap {
    .clickNoSelectText();
    height: 100%;
    margin-left: 0;
    transition: all 0.3s ease-in-out;

    .logo {
      margin: 16px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 20px;
      font-weight: 600;

      .icon {
        width: 50px;
        height: auto;
        margin-right: 12px;
        border-radius: 5px;
        cursor: default;
      }
    }

    :global {
      .ant-menu-inline {
        border-right: none;

        .ant-menu-item {
          width: 100%;
        }
      }

      .ant-menu-inline .ant-menu-item::after {
        border-left: 3px solid @menu-active;
        border-right: none;
        left: 0;
      }
    }

    .menu_icon {
      font-size: 18px;
    }
  }

  .hideSider {
    margin-left: -180px;
    transition: all 0.3s ease-in-out;
  }

  .changeIconWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    bottom: 64px;
    width: 12px;
    height: 70px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: @sky-blue;
    box-shadow: 0 0 5px @fff;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    z-index: 10;

    .icon {
      color: @menu-active;
      font-size: 12px;
      transition: all 0.3s ease-in-out;
    }

    &:hover {
      width: 20px;
      transition: all 0.3s ease-in-out;

      .icon {
        font-size: 16px;
        transition: all 0.3s ease-in-out;
      }
    }
  }

  .settingSiderWrap {
    padding: 5px 0;
  }
}

.dark {
  .siderWrap {
    background-color: @dark-bgc-deep;
    color: @dark-fc;

    :global {
      .ant-menu-inline {
        background-color: @dark-bgc-deep;
        color: @dark-fc;
      }
    }
  }
}

@media screen and (max-width: 960px) {
  .siderWrap {
    display: none;
  }
}
